package com.ruoyi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 维修器件金额对象 pro_repair_moneys
 * 
 * @author ruoyi
 * @date 2020-07-09
 */
public class ProRepairMoneys extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修项目器件id */
    private Long pId;

    /** 维修项目器件名称 */
    @Excel(name = "维修项目器件名称")
    private String pName;

    /** 维修项目器件单价 */
    @Excel(name = "维修项目器件单价")
    private BigDecimal pPrice;

    /** 维修项目个数 */
    @Excel(name = "维修项目个数")
    private Long pNumber;

    /** 维修项目总价 */
    @Excel(name = "维修项目总价")
    private BigDecimal pSumprice;

    /** 日期 */
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pNdate;

    /** 外键id */
    @Excel(name = "外键id")
    private Long mPid;

    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setpName(String pName) 
    {
        this.pName = pName;
    }

    public String getpName() 
    {
        return pName;
    }
    public void setpPrice(BigDecimal pPrice)
    {
        this.pPrice = pPrice;
    }

    public BigDecimal getpPrice()
    {
        return pPrice;
    }
    public void setpNumber(Long pNumber)
    {
        this.pNumber = pNumber;
    }

    public Long getpNumber()
    {
        return pNumber;
    }
    public void setpSumprice(BigDecimal pSumprice)
    {
        this.pSumprice = pSumprice;
    }

    public BigDecimal getpSumprice()
    {
        return pSumprice;
    }
    public void setpNdate(Date pNdate) 
    {
        this.pNdate = pNdate;
    }

    public Date getpNdate() 
    {
        return pNdate;
    }
    public void setmPid(Long mPid) 
    {
        this.mPid = mPid;
    }

    public Long getmPid() 
    {
        return mPid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pId", getpId())
            .append("pName", getpName())
            .append("pPrice", getpPrice())
            .append("pNumber", getpNumber())
            .append("pSumprice", getpSumprice())
            .append("pNdate", getpNdate())
            .append("mPid", getmPid())
            .toString();
    }
}
